package android.slc.user.ui.dept.vmbox

import android.slc.appbase.utils.AppIntentUtils
import android.slc.extras.user.entity.SysDept
import java.io.Serializable

/**
 *
 * @Description:
 * @Author: sunlunchang
 * @CreateDate: 2021/12/06 下午 2:42
 *
 */
class DeptListSingleVmBox : DeptListVmBox() {

    override fun notifyRefreshByGlobal(data: Any?) {
        data?.let {
            fillResultAndFinish(AppIntentUtils.getBundleByData(it as Serializable?))
        }
    }

    fun selectItem(position: Int, Dept: SysDept) {
        fillResultAndFinish(AppIntentUtils.getBundleByData(Dept))
    }
}